'use client'
 
import { useRouter } from 'next/navigation'
 
export default function RouterHook({path,children}) {
  const router = useRouter()
 
  return (
    <div onClick={() => router.push(path)}>
      {children}
    </div>
  )
}